package method;

public class Demo001 {
    public static void main(String[] args) {
        Max(1,2,3,4,7,8,9,2,500,88);
    }
    public static void Max(double... n)
    {
        if(n.length==0)
        {
            System.out.println("no");
            return;
        }
        double result=n[0];
        //数组越界
        for(int i=0;i<n.length;i++)
        {
            if(n[i]>result)
            {
                result=n[i];
            }
        }
        System.out.println(+result);
    }
}

